﻿function ChangeColor(tableRow, highLight) {
    if (highLight) {
        tableRow.style.backgroundColor = '#dcfac9';
    }
    else {
        tableRow.style.backgroundColor = 'white';
    }
}

function DoNav(theUrl) {
    document.location.href = theUrl;
}

function FocusOnFirstTextbox() {
    var elems = document.getElementsByTagName('input');
    for (var i in elems) {
        if (elems[i].getAttribute('type')=='text') {
            elems[i].focus();
            elems[i].select();
            break;
        }
    }
}
  